package com.zzt.cps.sdk.comm.req;

import java.io.Serializable;
import java.util.UUID;

/**
 * Copyright: Copyright (c) 2018  zteits
 *
 * @ClassName: com.zzt.cps.sdk.comm.req
 * @Description: 基础请求基类
 * @version: v1.0.0
 * @author: atao
 * @date: 2018/7/4   下午3:49
 * Modification History:
 * Date         Author          Version      Description
 * ---------------------------------------------------------*
 * 2018/7/4      atao          v1.0.0          创建
 */
public class BaseReq implements Serializable{

    /**
     * 本次请求ID
     */
    private String reqId;

    /**
     * 父类请求ID
     */
    private String preReqId;



    public String getReqId() {
        if(null == reqId){
            reqId = UUID.randomUUID().toString();
        }
        return reqId;
    }



    public String getPreReqId() {
        return preReqId;
    }

    public void setPreReqId(String preReqId) {
        this.preReqId = preReqId;
    }


}
